﻿/// <reference path="../jquery-3.1.1.min.js" />

$(document).ready(function () {
    setTableFunction('.dxgvTable');
})

//设置table tr滑动效果
function setTableFunction(jqSelector) {
    if (typeof (jqSelector) == 'undefined' || jqSelector == null) {
        return;
    }
    if ($(jqSelector).Disable_RowOverOut_ColorChange) {
        return;
    }
    //onmouseover
    $(jqSelector + " tbody").children("tr").each(function (i) {
        if (i == 0) {   return;     }
        $(this).mouseover(function () {
            $(this).css("background-color", "#D3D3D3");
        });
    });
    //onmouseout
    $(jqSelector + " tbody").children("tr").each(function (i) {
        if (i == 0) { return; }
        $(this).mouseout(function () {
            $(this).css("background-color", "#FFFFFF");
        });
    });

}